// $Id: DocumentInput.java 11 2011-09-08 21:03:19Z huijzer@gmail.com $
package lime.browser.editor;

import lime.model.Document;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;

public class DocumentInput implements IEditorInput {

	private Document document;
	
	public DocumentInput(Document document) {
		this.document = document;
	}
	
	public Document getDocument() {
		return document;
	}
	
	@SuppressWarnings("rawtypes")
	@Override
	public Object getAdapter(Class adapter) {
		return null;
	}

	@Override
	public boolean exists() {
		return false;
	}

	@Override
	public ImageDescriptor getImageDescriptor() {
		return null;
	}

	@Override
	public String getName() {
		return document.getObjectName();
	}

	@Override
	public IPersistableElement getPersistable() {
		return null;
	}

	@Override
	public String getToolTipText() {
		return document.getObjectName();
	}

}
